#include "timelabel.h"

#include <QTime>
#include <QDate>

TimeLabel::TimeLabel(QWidget* parent)
	: QLabel(parent)
{
	connect(&m_Timer, SIGNAL(timeout()), this, SLOT(timeUpdate()));
	m_Timer.setInterval(1000);
	m_Timer.start();
}

void TimeLabel::timeUpdate()
{
	setText( QDate::currentDate().toString("yyyy.MM.dd ") + QTime::currentTime().toString() );
}
